package com.ap.generator.equire.rtpstatus;

import com.ap.core.cxf.jaxb.managertp.AbstractEnquireRTPStatus1RequestGeneratorBuilder;
import com.ap.core.cxf.jaxb.managertp.EnquireRTPStatusMsgType;
import com.ap.generator.common.FieldGenerator;

import static com.ap.datagen.core.GeneratorHelper.buildA;
import static com.ap.datagen.core.Nullable.nullable;
import static com.ap.generator.messageheader.EnquireRTPStatusMsgHdrTypeGeneratorBuilder.msgHdrTypeGenerator;


/**
 * 
 *
 */
public class EnquireRTPStatusGeneratorBuilder extends AbstractEnquireRTPStatus1RequestGeneratorBuilder {
	
    @Override
    public void setupDefaults() {
    	this.msgHdrGenerator = FieldGenerator.MSGHDRGENERATORENQUIRERTPSTATUS;
        this.senderInfoGenerator = nullable(buildA(SenderInfoTypeGeneratorBuilder.getSenderInfoTypeGenerator()));
        this.transactionStatusEnqGenerator = nullable(buildA(TransactionStatusEnqGeneratorBuilder.getTransactionStatusEnqGenerato()));

    }
    
    /**
     * 
     * @return
     */
    public static EnquireRTPStatusGeneratorBuilder getSubmitRTPTypeGenerator() {
    	return new EnquireRTPStatusGeneratorBuilder();
    }
    
    public EnquireRTPStatusGeneratorBuilder getEnquireRTPStatus(){
    	this.msgHdrGenerator = nullable(buildA(msgHdrTypeGenerator().withMsgType(EnquireRTPStatusMsgType.REQUESTRTPSTATUS)));
    	return this;
    }
    

}
